import request from "@/utils/request";

export function deptList(data){
    return request({
        url:'/dept/list',
        method:'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

export function deptSelectByParent(data){
    return request({
        url:'/dept/select',
        method:'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

export function deptInfo(data){
    return request({
        url:'/dept/info',
        method:'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

export function deptAdd(data){
    return request({
        url:'/dept/add',
        method:'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

export function deptEdit(data){
    return request({
        url:'/dept/edit',
        method:'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}

export function deptStatusChange(data){
    return request({
        url:'/dept/status',
        method:'post',
        headers:{
            'Content-Type': 'application/json;charset=utf-8'
        },
        data
    })
}
